package com.quanyan.pay.api.wechat.vo;

import com.quanyan.pay.enums.WxAuthCodeErrCodeEnum;
import com.quanyan.pay.enums.WxErrCodeEnum;
import com.quanyan.pay.enums.WxResultCodeEnum;
import com.quanyan.pay.enums.WxReturnCodeEnum;
import com.quanyan.pay.vo.WxBaseRespVo;
import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * Created by Zheng.Ke
 * Date 2017/2/16.
 * 具体参见文档 https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_13&index=9
 */
@XStreamAlias("xml")
public class WxAuthCodeToOpenIdRespVo extends WxBaseRespVo {
    /** 返回状态码 */
    private WxReturnCodeEnum return_code;
    /** 返回信息 */
    private String return_msg;
    /** 业务结果 */
    private WxResultCodeEnum result_code;
    /** 应用APPID */
    private String appid;
    /** 商户号 */
    private String mch_id;
    /** 设备号 */
    private String device_info;
    /** 随机字符串 */
    private String nonce_str;
    /** 签名 */
    private String sign;
    /** 错误代码 */
    private WxAuthCodeErrCodeEnum err_code;
    /** 错误代码描述 */
    private String err_code_des;
    /** 用户标识 */
    private String openid;

    public WxReturnCodeEnum getReturn_code() {
        return return_code;
    }

    public void setReturn_code(WxReturnCodeEnum return_code) {
        this.return_code = return_code;
    }

    public String getReturn_msg() {
        return return_msg;
    }

    public void setReturn_msg(String return_msg) {
        this.return_msg = return_msg;
    }

    public WxResultCodeEnum getResult_code() {
        return result_code;
    }

    public void setResult_code(WxResultCodeEnum result_code) {
        this.result_code = result_code;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getDevice_info() {
        return device_info;
    }

    public void setDevice_info(String device_info) {
        this.device_info = device_info;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public WxAuthCodeErrCodeEnum getErr_code() {
        return err_code;
    }

    public void setErr_code(WxAuthCodeErrCodeEnum err_code) {
        this.err_code = err_code;
    }

    public String getErr_code_des() {
        return err_code_des;
    }

    public void setErr_code_des(String err_code_des) {
        this.err_code_des = err_code_des;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
}
